package com.main.geomidi;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;


public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        final Animation animScale = AnimationUtils.loadAnimation(this, R.anim.anim_scale);
        Button btnScale = (Button)findViewById(R.id.scale);
        
        btnScale.setOnClickListener(new Button.OnClickListener(){

        	@Override
        	public void onClick(View arg0) {
        		arg0.startAnimation(animScale);
        	}});

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        //
        return true;
    }
    
}
